<?php require_once('../../core/import.php');?>
<?php User::Permission('EXHIBITION_COM_DELETE'); ?>
<?php
    if($_SERVER['REQUEST_METHOD']=='POST')
    {        
        #遍历
        foreach(@Functions::FormArgs('ID') as $Value)
        {
			 if($Data=DB::GetRowByID('exhibition_company',$Value))
        	{
				//删除记录
				@unlink(Config::PATH_UPLOAD_ATTACHMENT_NEWS.'/'.$Data['Logo']);
			}
			DB::CExec("delete from exhibition_company  where ID=$Value");
        }
        #转向
        header('location:list.php');
    }
?>